<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <link href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <script type="text/javascript">
        function doDelete(cid){
            var flag = confirm("您确定删除购物车吗？")
            if(flag){
                window.location.href="${pageContext.request.contextPath}/user/deleteCart?cid="+cid;
            }
        }
    </script>
</head>
<body>
<h1>添加订单信息</h1>
<div class="container">

    <div class="row clearfix">
        <div class="col-md-12 column">
            <form action="${pageContext.request.contextPath}/user/updateOrderInfo" method="post" enctype="multipart/form-data">
                <div style="border: 2px solid #a1a1a1;padding: 10px 40px; width: 600px;border-radius: 25px;">
                    <input type="hidden" name="orid" value="${orderInfo.orid}">
                    <input type="hidden" name="oid" value="${orderInfo.oid}">
                    <div class="form-group">
                        <label for="oid">订单编号：</label>
                        <input type="text" name="oid" class="form-control" id="oid" value="${orderInfo.oid}" readonly required>
                    </div>
                    <div class="form-group">
                        <label for="IDnumber">身份证号：</label>
                        <input type="text" name="IDnumber" class="form-control" id="IDnumber" value="${orderInfo.IDnumber}" required>
                    </div>
                    <div class="form-group">
                        <label for="tel">电话号码：</label>
                        <input type="text" name="tel" class="form-control" id="tel" value="${orderInfo.tel}" required>
                    </div>
                    <div class="form-group">
                        <label for="healthcode">健康码：</label>
                        <c:if test="${orderInfo.healthCode !=null }">
                            <img src="${pageContext.request.contextPath}/healthCode/${orderInfo.healthCode}" width="300px">
                        </c:if>
                        <input type="file" name="healthCode" class="form-control" id="healthCode">
                    </div>
                    <div class="form-group">
                        <label for="tourcode">行程码：</label>
                        <c:if test="${orderInfo.tourCode !=null }">
                            <img src="${pageContext.request.contextPath}/tourCode/${orderInfo.tourCode}" width="300px">
                        </c:if>
                        <input type="file" name="tourCode" class="form-control" id="tourCode">
                    </div>
                    <button type="submit" class="btn btn-default">提交信息</button>
                    <a href="${pageContext.request.contextPath}/user/allOrderInfo?oid=${orderInfo.oid}" class="btn btn-primary">取消</a>
                </div>

            </form>



        </div>
    </div>


</div>




</body>
</html>
